#include "LCD.h"
#include "bsp.h"
#include "typedefs.h"

#define DEBOUNCE_TIME (1400)

#define MENU_UP					0x08
#define MENU_DOWN				0x10
#define MENU_ENTER			0x20
#define MENU_BACK				0x40

#define ARROW						0x7E  //or 0x10 depending on LCD serial
#define BLANK						0x20
#define STAY						0xFF

//Menu Levels and sizes
#define HOME					0
#define HOME_SIZE				1
#define MAIN_MENU				1
#define MAIN_MENU_SIZE			2
#define INDICATOR				2
#define INDICATOR_SIZE			1
#define ZONE_LIST				3
#define ZONE_LIST_SIZE			1
#define ZONE_INFO       		4

void menuInit(void);
void menuAction(uint8_t menuControl, RTS_t**);
void printMenu(uint8_t menuLevel, uint8_t menuRow, RTS_t**);
void moveCursor(uint8_t direction);
void batteryIndicator(void);
